Collection	Description												W3C 
anchors[]	Returns an array of all the anchors in the document		Yes 
forms[]		Returns an array of all the forms in the document		Yes 
images[]	Returns an array of all the images in the document		Yes 
links[]		Returns an array of all the links in the document		Yes 

----------------------------------

<a id='as1' href="http://www.java2s.com">The Green Site</a><br>
<a href="http://www.java2s.com">The Green Site</a><br>
<script language="JavaScript">
document.write('document.anchors.length : '+document.anchors.length+"<br/>");
document.write("document.getElementsByTagName('a').length : "+document.getElementsByTagName('a').length+"<br/>");
</script>
<a name='as3' href="http://www.java2s.com">The Green Grass Page</a>

note: document.anchors will work only when the anchor tag has id or name

----------------------------------


<img src ="planets.gif" width="145" height="126" alt="Planets" usemap ="#planetmap" />
<map name="planetmap">
	<area id="sun" shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" />
	<area id="mercury" shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" />
	<area id="venus" shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" />
</map>
<p><a id="javascript" href="/js/">JavaScript Tutorial</a></p>
<p>Id of first area/link:
<script type="text/javascript">
document.write(document.links.length);
document.write(document.links[2].shape);
document.write(document.links[0].id);
</script></p>


=======================================================================


Property	Description															W3C 
referrer	Returns the URL of the document that loaded the current document	Yes 
title		Sets or returns the title of the document							Yes 
URL			Returns the full URL of the document								Yes 
compatMode	Returns the compatibility mode of the current document,				Yes
			specifically, whether the page is rendered in Quirks or Stricts 
			mode. The two possible values returned are "BackCompat" for 
			Quirks and "CSS1Compat" for Strict. Useful for determining the 
			doctype setting of the page and executing different code 
			accordingly.

cookie		Returns all name/value pairs of cookies in the document				Yes 
domain(ie8)	Returns the domain name of the server that loaded the document		Yes 



----------------------------

The referrer of this document is:
<script type="text/javascript">
document.write(document.referrer);
</script>


The referrer of this document is: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_referrer 

===========================================================================


Method					Description		W3C 
getElementById()		Accesses the first element with the specified id Yes 
getElementsByName()		Accesses all elements with a specified name Yes 
getElementsByTagName()	Accesses all elements with a specified tagname Yes 
write()					Writes HTML expressions or JavaScript code to a document Yes 
writeln()				Same as write(), but adds a newline character after each statement Yes 

close()					Closes the output stream previously opened with document.open() Yes 
open()					Opens an output stream to collect the output from document.write() or document.writeln() Yes 



	
